TELSetHooksw
Sets the state of a terminal's hookswitch.
pascal TELErr TELSetHooksw ( TELHandle hTEL, short hookType, Boolean offHook);
hTEL
- A handle to a telephone record associated with a telephone terminal.
hookType
- The type of hookswitch. See "Hookswitch Types and States" on page 2-11 for a description of the available hookswitch types.
offHook
- A Boolean value that indicates the new hookswitch state of the specified terminal.
- function result
- A result code.
DESCRIPTION
TheTELSetHooksw
function sets the state of the hookswitch of the terminal specified by thehTEL
andhookType
parameters to the state specified by theoffHook
parameter. IfoffHook
istelDeviceOffHook
, the hookswitch is taken off hook. IfoffHook
istelDeviceOnHook
, the hookswitch is put on hook.SPECIAL CONSIDERATIONS
Some terminals might not support theTELSetHooksw
function.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help